﻿<catel:DataWindow x:Class="ePoliceConfiger.Views.MainWindow"
                  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                  xmlns:catel="http://catel.codeplex.com"
                  xmlns:ViewModels="clr-namespace:ePoliceConfiger.ViewModels"
                  x:TypeArguments="ViewModels:MainWindowViewModel"
                  ShowInTaskbar="True"
                  ResizeMode="CanResize" 
                  mc:Ignorable="d" 
                  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                  xmlns:Controls="clr-namespace:Kise.WPF.Controls;assembly=Kise.WPF.Controls" WindowStartupLocation="CenterScreen">
    
    <!-- Resources -->
    <catel:DataWindow.Resources>
    </catel:DataWindow.Resources>
    
    <!-- Content -->
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="5" />
            <RowDefinition MinHeight="500" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" MinWidth="100" />
            <ColumnDefinition Width="5" />
            <ColumnDefinition MinWidth="600"  />
        </Grid.ColumnDefinitions>
        <TreeView  Grid.Row="2">
            <TreeViewItem x:Name="GeneralInfo" IsExpanded="true" Header="电子警察信息" Selected="GeneralInfo_Selected" />
            <TreeViewItem IsExpanded="True" Header="车道信息">
                <TreeViewItem x:Name="Lane1" Header="车道1" Selected="Lane1_Selected" />
            </TreeViewItem>
        </TreeView>
        <Frame x:Name="PageContainer" Grid.Row="2" Grid.Column="2" NavigationUIVisibility="Hidden" BorderThickness="1" BorderBrush="Gray"></Frame>
        <StackPanel Orientation="Horizontal" Grid.ColumnSpan="3">
            <Controls:LabeledTextBox Label="IP：" />
            <Button Content="连接" />
        </StackPanel>
    </Grid>
</catel:DataWindow>
